Release 10.1A: OpenEdge Development:
ProDataSets
Specifying member buffers
Every member of a ProDataSet is identified by a buffer for the temp-table holding that member’s data. The same buffer cannot be added to more than one ProDataSet concurrently, although a member table can be a part of more than one ProDataSet, using separate buffers for independent record currency.
You can specify one or more buffers for a dynamic ProDataSet with the
SET-BUFFERSmethod, which has the following syntax:
This statement defines all the buffers for the ProDataSet in a single method call, whether there are one or more temp-tables in the ProDataSet.
Alternatively, you can add buffers to a dynamic ProDataSet one at a time, using the
ADD-BUFFERmethod:
These definitions apply to both the
ADD-BUFFERand theSET-BUFFERSmethods:
buffer-handle-expressioncan be either a temp-table handle or a buffer handle. If it is a temp-table handle, then the temp-table’sdefault-buffer-handleis used as the buffer handle.buffer-name-expressionis the name of a static buffer for a temp-table scoped to the procedure that contains the statement.Both
ADD-BUFFERandSET-BUFFERSreturn an optional logical status, which is true if the method was successful and false if not. UseSET-BUFFERSjust once to set the entire buffer list for the ProDataSet. If there were any buffers already added,SET-BUFFERSremoves them first.ADD-BUFFERadds a single buffer to those already there.If you want to reset your ProDataSet to have no buffers, you can use this method:
This removes all elements from the ProDataSet definition, including buffers, relations, and so on. It restores the state of the handle to exactly what it was after the
CREATE DATASETstatement.As noted, by default, dynamic buffers that are added to a ProDataSet are deleted when the ProDataSet is deleted, unless you set the buffer’s
AUTO-DELETEattribute toFALSE.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |